<!-- Top Navbar-->
<div class="navbar">
    <div class="navbar-inner">
        <div class="left">
            <a href="{{ action('Wx\UserController@getIndex') }}" class="link">
                <i class="icon icon-back"></i>
                <span>返回</span>
            </a>
        </div>
        <div class="center">订单详情</div>
    </div>
</div>
<!-- /End of Top Navbar-->

<!-- Now we need additional "navbar-through" and "toolbar-through" classes on Pages -->
<div class="pages navbar-through toolbar-through">
    <div data-page="user-order" class="page contact-page">
        <div class="page-content infinite-scroll">
            <div class="content-block-title">订单详情</div>
            <div class="list-block media-list" id="orderData" data-url="{{ action('Wx\UserController@postOrder') }}">
                <ul>
                    @foreach($order as $v)
                        <li>
                            <a href="" class="item-link item-content">
                                <div class="item-inner">
                                    <div class="item-title-row closeLink">
                                        <div class="item-title">{{ $v->orderNumber }}</div>
                                        <div class="item-after">{{ $v->amount }} 円</div>
                                    </div>
                                    <div class="item-subtitle">
                                        @if($v->payState == 0)
                                            <span class="label label-danger labelTags">未付款</span>
                                        @else
                                            <span class="label label-success labelTags">已付款</span>
                                        @endif

                                        @if($v->logisticsState == 0)
                                                <span class="label label-danger labelTags">未接单</span>
                                            @elseif($v->logisticsState == 1)
                                                <span class="label label-info labelTags">配送中</span>
                                            @elseif($v->logisticsState == 2)
                                                <span class="label label-success labelTags">已送达</span>
                                            @endif
                                            <span>{{ $v->created_at }}</span>
                                    </div>
                                    <div class="item-text">{{ $v->orderList }}</div>
                                </div>
                            </a>
                        </li>
                    @endforeach
                </ul>
            </div>
            <!-- Preloader -->
            <div class="infinite-scroll-preloader">
                <div class="preloader"></div>
            </div>
        </div>
    </div>
</div>
